package mysgoog.pattern.emptyPattern;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import mysgoog.gtp.Color;
import mysgoog.pattern.Storage.ValueTriple;
import mysgoog.pattern.Storage.VertexValue;

public class EmptyPatternTest {
	static Color O = Color.WHITE;
	static Color X = Color.BLACK;
	static Color U = Color.EMPTY;
	static Color[] board = {
			U, O, O, O, O, U, U, U, U, U, U, U, U,
			U, U, U, U, U, U, U, U, U, U, U, U, O, 
			U, U, U, U, U, U, U, U, U, U, U, U, O, 
			U, U, U, U, U, U, U, U, U, U, U, U, O, 
			U, U, U, U, U, U, U, U, U, U, U, U, O, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			O, U, U, U, U, U, U, U, U, U, U, U, U, 
			O, U, U, U, U, U, U, U, U, U, U, U, U, 
			O, U, U, U, U, U, U, U, U, U, U, U, U, 
			O, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, O, O, O, O, U 
	};
	static Color[] smallBoard = {
		U, U, U,
		U, U, U,
		U, U, U
};
	public static void main(String[] arg) throws IOException, ClassNotFoundException{
		System.out.println("Loading");
		EmptyPatternMatcher matcher = new EmptyPatternMatcher();
		List<ValueTriple> moves = new ArrayList<ValueTriple>();
		System.out.println("Matching");
		matcher.getMatch(board, O, moves);
		for (ValueTriple i:moves){
			//System.out.println(i.x + " " + i.y + " " + i.firstValue + " " + i.secondValue);
		}
	}
}
 